<div style="width: 1000px; height: 500px">
    <monitorVideoVue :list="curShowList"></monitorVideoVue>
</div>

<script>
import monitorVideoVue from "../components/video/monitorVideo.vue";
components: {
    monitorVideoVue
},
data(){
videoListAll: [],
curShowList: [], // 当前能显示的摄像头                
},
methods: {
getxxxxxxVideo().then((res) => {
  this.videoListAll = res.data;
})
for (let i = 0; i <= 3; i++) { //这里我只拿了4个索引码传过去，要多少看你们自己
  this.curShowList.push(videoListAll[i].cameraIndexCode)
}
}
</script>